<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>会员卡列表 - 知无不言小程序</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --primary-color: #0a75b5;
            --primary-light: rgba(10, 117, 181, 0.1);
            --text-primary: #333;
            --text-secondary: #666;
            --text-tertiary: #999;
            --bg-color: #f5f7fa;
            --card-bg: #ffffff;
            --blue-card-bg: #4a8bbd; /* 降低亮度和饱和度，更柔和的蓝色 */
            --expired-card-bg: #c5c5c5; /* 更柔和的灰色 */
            --border-radius: 12px;
            --transition: all 0.3s ease;
        }
        
        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 750px;
            margin: 0 auto;
            padding: 20px 15px 80px;
            background-color: var(--bg-color);
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding: 0 4px;
        }
        
        .header h1 {
            font-size: 24px;
            color: var(--text-primary);
            font-weight: 600;
            text-align: center;
            flex: 1;
        }
        
        .header-back {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
        }
        
        .header-more {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
        }
        
        .search-box {
            position: relative;
            margin-bottom: 20px;
        }
        
        .search-box input {
            width: 100%;
            padding: 14px 16px;
            border: none;
            border-radius: var(--border-radius);
            font-size: 15px;
            background-color: var(--card-bg);
            padding-left: 48px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: var(--transition);
        }
        
        .search-box input:focus {
            outline: none;
            box-shadow: 0 4px 12px rgba(10, 117, 181, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            font-size: 18px;
        }
        
        .filter-tabs {
            display: flex;
            margin-bottom: 20px;
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        
        .filter-tab {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            font-size: 15px;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 8px;
            transition: var(--transition);
            position: relative;
            z-index: 1;
        }
        
        .filter-tab.active {
            color: var(--card-bg);
            font-weight: 500;
        }
        
        .filter-tab.active::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--primary-color);
            border-radius: 8px;
            z-index: -1;
            transition: var(--transition);
        }
        
        .card-list {
            margin-bottom: 20px;
            display: grid;
            gap: 16px;
        }
        
        .card-item {
            background-color: var(--blue-card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .card-item.expired {
            background-color: var(--expired-card-bg);
        }
        
        .card-icon {
            position: absolute;
            left: 20px;
            top: 20px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            backdrop-filter: blur(2px);
        }
        
        .card-status {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 14px;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 500;
            background-color: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(2px);
        }
        
        .card-number {
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 1px;
            margin-top: 10px;
            margin-bottom: 20px;
            text-align: center;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .card-info {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }
        
        .info-row {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }
        
        .info-label {
            color: rgba(255, 255, 255, 0.8);
        }
        
        .info-value {
            color: white;
            font-weight: 500;
        }
        
        .card-actions {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 20px;
        }
        
        .card-action-btn {
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .card-action-btn:hover {
            background-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }
        
        .card-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .card-stat {
            flex: 1;
            text-align: center;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            margin: 0 5px;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 600;
        }
        
        .stat-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 4px;
        }
        
        .copy-btn {
            position: absolute;
            right: 20px;
            top: 50px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
        }
        
        .remaining-hours {
            position: absolute;
            right: 20px;
            bottom: 20px;
            font-size: 16px;
            font-weight: 600;
        }
        
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--card-bg);
            display: flex;
            padding: 12px 0 20px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            z-index: 100;
        }
        
        .footer-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: var(--text-secondary);
            transition: var(--transition);
        }
        
        .footer-item.active {
            color: var(--primary-color);
        }
        
        .footer-icon {
            font-size: 22px;
            margin-bottom: 6px;
        }
        
        .action-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 20px;
        }
        
        .action-button {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 15px;
            text-align: center;
            color: var(--text-primary);
            font-size: 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .action-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        @media (max-width: 375px) {
            .container {
                padding: 15px 10px 80px;
            }
            
            .card-item {
                padding: 16px;
            }
        }
    </style>
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_3159629_2w7rq7x8jtb.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="header-back">
                <i class="iconfont icon-left" style="font-size: 20px;"></i>
            </div>
            <h1>我的会员卡</h1>
            <div class="header-more">
                <i class="iconfont icon-more" style="font-size: 20px;"></i>
            </div>
        </div>
        
        <div class="search-box">
            <i class="iconfont icon-search search-icon"></i>
            <input type="text" placeholder="搜索会员卡号或名称">
        </div>
        
        <div class="filter-tabs">
            <div class="filter-tab active">全部</div>
            <div class="filter-tab">有效</div>
            <div class="filter-tab">已过期</div>
        </div>
        
        <div class="card-list">
            <!-- 有效会员卡 -->
            <div class="card-item">
                <div class="card-icon">
                    <i class="iconfont icon-vip" style="font-size: 24px;"></i>
                </div>
                <div class="card-status">有效</div>
                <div class="card-number">8CFEF50A98E8FDADAEB66E82B1345B75</div>
                <div class="copy-btn">点击复制</div>
                
                <div class="info-row">
                    <div class="info-label">开通时间</div>
                    <div class="info-value">2025-08-08</div>
                </div>
                <div class="info-row">
                    <div class="info-label">过期时间</div>
                    <div class="info-value">2026-06-19</div>
                </div>
                
                <div class="remaining-hours">剩余课时: 58</div>
                
                <div class="card-stats">
                    <div class="card-stat">
                        <div class="stat-value">2/3</div>
                        <div class="stat-label">可授权</div>
                    </div>
                    <div class="card-stat">
                        <div class="stat-value">2/3</div>
                        <div class="stat-label">可换绑</div>
                    </div>
                </div>
                
                <div class="action-buttons">
                    <div class="action-button">充值课时</div>
                    <div class="action-button">课时转移</div>
                    <div class="action-button">绑定管理</div>
                    <div class="action-button">权益记录</div>
                </div>
            </div>
            
            <!-- 过期会员卡 -->
            <div class="card-item expired">
                <div class="card-icon">
                    <i class="iconfont icon-vip" style="font-size: 24px;"></i>
                </div>
                <div class="card-status">过期</div>
                <div class="card-number">B49DB2CF5AA3F905F8B8F9DC86113DD8</div>
                <div class="copy-btn">点击复制</div>
                
                <div class="info-row">
                    <div class="info-label">开通时间</div>
                    <div class="info-value">2024-08-23</div>
                </div>
                <div class="info-row">
                    <div class="info-label">过期时间</div>
                    <div class="info-value">2025-08-23</div>
                </div>
                
                <div class="remaining-hours">剩余课时: 0</div>
                
                <div class="card-stats">
                    <div class="card-stat">
                        <div class="stat-value">2/3</div>
                        <div class="stat-label">可授权</div>
                    </div>
                    <div class="card-stat">
                        <div class="stat-value">3/3</div>
                        <div class="stat-label">可换绑</div>
                    </div>
                </div>
                
                <div class="action-buttons">
                    <div class="action-button">充值课时</div>
                    <div class="action-button">课时转移</div>
                    <div class="action-button">绑定管理</div>
                    <div class="action-button">权益记录</div>
                </div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="footer">
            <div class="footer-item">
                <i class="iconfont icon-home footer-icon"></i>
                <span>首页</span>
            </div>
            <div class="footer-item">
                <i class="iconfont icon-activity footer-icon"></i>
                <span>活动</span>
            </div>
            <div class="footer-item active">
                <i class="iconfont icon-user footer-icon"></i>
                <span>我的</span>
            </div>
        </div>
    </div>

    <script>
        // 交互效果
        document.addEventListener('DOMContentLoaded', function() {
            // 标签切换
            const tabs = document.querySelectorAll('.filter-tab');
            const cardItems = document.querySelectorAll('.card-item');
            
            tabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    tabs.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                    
                    const filter = this.textContent.trim();
                    
                    // 添加过渡效果
                    cardItems.forEach(card => {
                        card.style.transition = 'opacity 0.3s ease, transform 0.3s ease';
                        
                        if (filter === '全部') {
                            card.style.opacity = '0';
                            card.style.transform = 'translateY(10px)';
                            setTimeout(() => {
                                card.style.display = 'block';
                                setTimeout(() => {
                                    card.style.opacity = '1';
                                    card.style.transform = 'translateY(0)';
                                }, 10);
                            }, 300);
                        } else if (filter === '有效' && !card.classList.contains('expired')) {
                            card.style.opacity = '0';
                            card.style.transform = 'translateY(10px)';
                            setTimeout(() => {
                                card.style.display = 'block';
                                setTimeout(() => {
                                    card.style.opacity = '1';
                                    card.style.transform = 'translateY(0)';
                                }, 10);
                            }, 300);
                        } else if (filter === '已过期' && card.classList.contains('expired')) {
                            card.style.opacity = '0';
                            card.style.transform = 'translateY(10px)';
                            setTimeout(() => {
                                card.style.display = 'block';
                                setTimeout(() => {
                                    card.style.opacity = '1';
                                    card.style.transform = 'translateY(0)';
                                }, 10);
                            }, 300);
                        } else {
                            card.style.opacity = '0';
                            card.style.transform = 'translateY(10px)';
                            setTimeout(() => {
                                card.style.display = 'none';
                            }, 300);
                        }
                    });
                });
            });
            
            // 搜索功能
            const searchInput = document.querySelector('.search-box input');
            
            searchInput.addEventListener('input', function() {
                const searchText = this.value.toLowerCase();
                
                cardItems.forEach(card => {
                    const cardTitle = card.querySelector('.card-title').textContent.toLowerCase();
                    const cardNumber = card.querySelector('.info-value').textContent.toLowerCase();
                    
                    if (cardTitle.includes(searchText) || cardNumber.includes(searchText)) {
                        card.style.display = 'block';
                        setTimeout(() => {
                            card.style.opacity = '1';
                            card.style.transform = 'translateY(0)';
                        }, 10);
                    } else {
                        card.style.opacity = '0';
                        card.style.transform = 'translateY(10px)';
                        setTimeout(() => {
                            card.style.display = 'none';
                        }, 300);
                    }
                });
            });
        });
    </script>
</body>
</html>